package com.shanshan.system.service.impl;



import com.shanshan.system.entity.Edu;
import com.shanshan.system.mapper.EduMapper;
import com.shanshan.system.service.EduService;
import com.shanshan.system.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * -*- coding:utf-8 -*-
 *
 * @author 太阳偷渡青山
 * @software IntelliJ IDEA
 * @date 2022/10/13 22:34
 * @Description
 */
@Service
@SuppressWarnings("all")
public class EduServiceImpl implements EduService {
    @Autowired
    private EduMapper eduMapper;

    @Override
    public Result findAll() {
        List<Edu> allEdu = eduMapper.findAllEdu();
        System.out.println("============================================"+allEdu);
        return new Result(200,"查询成功",allEdu);
    }
}
